/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package project1;

/**
 *
 * @author maciej
 */
public class Line3D {
    Point3D start;
    Point3D end;


 public Line3D (Point3D p1, Point3D p2) {
        start = p1;
        end = p2;
    }    
    
    
public Point3D getPoint(int i){
    if(i==0){return start;}
    else{return end;}
}

public void setPoint(int i, Point3D point){
    if(i==0){start = point;}
    else {end = point;}
        
}

}
